-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vimeo InfoExtractor #17
Conversation
Ok. As I see and you said, it still has some changes pending. I'll leave the pull request open but don't forget to comment or email me when it's ready to merge, and I'll do. Thanks for the time and code. |
I'd like to see support to switch to /sd/ from /hd/, e.g. with the -f command line option. |
Hi there. I didn't know that this was already implemented and I implemented an extractor in a fork. I don't consider it ready for prime time, but it may serve as inspiration. In particular, I think that some of what I use is simpler than the proposed solution, as I am not using anything else than simple regexps. You may want to see it as my commit: rbrito/youtube-dl@c3ab017cb Feel free to steal anything from here. (Yes, public domain). Regards, Rogério Brito. |
Hi! rbrito, if your version supports choosing between SD and HD with the -f switch, or you think you can easily add it, please issue a pull request when ready, and I'll merge your changes. |
rbrito, your version indeed looks simpler in terms of dependencies (no xml module needed) so I would recommend it over mine. |
[pull] master from rg3:master
[xtube] fix extractor (ytdl-org#17)
Hey, this is my VimeoIE implementation that I pushed to bitbucket.org, below is your feedback which I still need to address. I will make changes in the code and let you know.
Below is what you wrote to me on bitbucket.org:
"Hello,
Thanks for your time and code. I will gladly merge the Vimeo InfoExtractor in youtube-dl provided some conditions are met. Most are dead simple, so here they go:
(1) You agree to release your code to the public domain, so it can be incorporated into youtube-dl without a license change.
(2) You agree to provide support for Vimeo issues in the issue tracker, and fix bugs related to that.
(3) You change your code slightly. I have found some minor problems:
(3.1) The URL regexp needs to accept "www." too. (Simply add "(?:www.)?" to the regular expression).
(3.2) The xml module you're using was not added until Python 2.5. While this is indeed perfectly reasonable, I'd like you to use the more unelegant regexp method seen in other InfoExtractors to maintain compatibility with Python 2.4.
Other than that, very good job! I tested it and it worked fine with a couple of videos. Issue another pull request when the changes are ready.
PS: If you had used import xml.etree.ElementTree at the top, you wouldn't need to use the "from xml..." line that can be seen inside the Vimeo InfoExtractor."